{extend name="base/main" /}
{block name="body"}

<div class="wrapper wrapper-content animated fadeInRight">
  <div class="ibox float-e-margins">
    <div class="ibox-title">
      <h5>会员管理 / 会员记录列表</h5>
    </div>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  <div class="layui-form-item">
    <label class="layui-form-label">昵称</label>
    <div class="layui-input-inline">
      <input type="text" name="username" lay-verify="required" placeholder="请输入昵称" autocomplete="off" class="layui-input">
    </div>
  </div>
</fieldset>
    <div class="ibox-content">
      <div class="row row-lg">
        <div class="col-sm-12">
          <div class="example-wrap">
            <div class="example">
              <table class="table table-hover ">
                <thead>
                <tr>
                  <th><input type="checkbox" class="i-checks check-all"></th>
                  <th>编号</th>
                  <th>昵称/UID</th>
                  <th>类别</th>
                  <th>有效期</th>
                  <th>优惠价</th>
                  <th>卡号</th>
                </tr>
                </thead>
                <tbody>
                {volist name="list" id="vo"}
                <tr>
                  <td><input type="checkbox" class="i-checks ids" name="id[]" value="{$vo.id}"/></td>
                  <td><a href="{:url('record/index',['pid'=>$vo['id']])}" >{$vo.title}</a></td>
                  <td>{$vo.id}</td>
                  <td>{$vo.uid}</td>
                  <td>{$vo.type}</td>
                  <td>{$vo.validity}</td>
                  <td>{$vo.price}</td>
                  <td>{$vo.code}</td>
                  <td>
                    <a href="{:url('record/edit',['id'=>$vo['id']])}" class="btn btn-info btn-xs"><i class="fa fa-paste"></i> 编辑 </a>
                    <a href="javascript:void(0);" class="btn btn-danger btn-xs confirm tabledel ajax-post-a" target-form="id" data-id="{$vo.id}" url="{:url('record/remove',['id'=>$vo['id']])}"><i class="fa fa-trash"></i> 删除 </a>
                  </td>
                </tr>
                {/volist}
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
{/block}